import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.IOException;
import java.util.Collection;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;

import controller.SLogoController;

import model.Model;
import model.Turtle;

import gui.SLogoGUI;

/**
 * Main class to run/init system
 * 
 * @author Troy Ferrell
 * @author Shun Fan
 */

public class SLogoMain 
{
	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args)  
	{
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		
		Model model = new Model();
		SLogoController controller = new SLogoController(model);
		
		SLogoGUI slGUI = new SLogoGUI(controller, model);
		slGUI.setVisible(true);
		slGUI.setSize(screenSize);
		
		sampleTurtleMove(model);
	}
	
	//This is a sample demo testing method for testing turtle movement and the GUI.
	private static void sampleTurtleMove(Model m)
	{
		Collection<Turtle> allTurts = m.getAllTurtles();
		for(Turtle t : allTurts){
			t.forward(50);
			t.right(90);
			t.forward(50);

		}
	}

}
